<extend name="Home:index" />

<block name="page_content">
    <div id="dcMain">
        <!-- 当前位置 -->
        <div id="urHere">管理中心<b>></b><strong>用户列表</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
            <h3><!--<a href="" class="actionBtn add">添加用户</a>-->兑换地区列表</h3>
            
            <!--<div class="filter">
                <form action="<php>echo \Org\Net\Fun::url('admin/home/creatExchange');</php>" method="get">
                    <input name="button" class="btnGray submit_form" type="button" value="生成兑换码" />
                </form>
            </div>-->
            <div id="list">
                <form name="action" method="post" action="article.php?rec=action">
                    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                        <tr>
                            <th width="22" align="center">数量</th>
                            <th width="40" align="center">兑换码</th>
                            <th width="80" align="center">兑换地址</th>
                            <th width="150" align="center">是否兑换</th>
                        </tr>

                        <foreach name="list" item="item" key="k" >
                            <tr>
                                <td align="center"><?php echo $k+1;?></td>
                                <td align="center">{$item.code}</td>
                                <td align="center">{$item.address}</td>
                                <td align="center">
                                    <?php if($item['effective']==1):?>
                                        已兑换
                                    <?php else:?>
                                        未兑换
                                    <?php endif;?>
                                </td>

                            </tr>
                        </foreach>

                    </table>
                    <!--
                    <div class="action">
                        <select name="action" onchange="douAction()">
                            <option value="0">请选择...</option>
                            <option value="del_all">删除</option>
                            <option value="category_move">移动分类至</option>
                        </select>
                        <select name="new_cat_id" style="display:none">
                            <option value="0">未分类</option>
                            <option value="1"> 公司动态</option>
                            <option value="2"> 行业新闻</option>
                        </select>
                        <input name="submit" class="btn" type="submit" value="执行" />
                    </div>
                    -->
                </form>
            </div>
            <div class="clear"></div>
           <!--<div class="pager">{$page}</div>-->     
        </div>
    </div>
</block>    